#sidebar 
{
    position: relative;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 100vh;
    background-color: #212327;
}

#sidebar-new 
{
    padding-top: 34px;
    margin-bottom: 34px;
}

#sidebar-new-button 
{
    display: flex;
    align-items: center;
    color: rgb(248 250 252);
    background-color: #4d6bfe;
    border-radius: 14px;
    cursor: pointer;
    height: 44px;
    width: fit-content;
    padding: 0 10px;
    margin: 0 2px 0 14px;
}

#sidebar-new-button-icon 
{
    margin-right: 9px;
}

#sidebar-chat-list 
{
    flex: 1;
    padding: 0 10px;
    overflow: auto;
    height: calc(100vh - 183px);
}

#sidebar-chat-list-wrapper 
{
    height: calc(100vh - 183px);
}

#sidebar-chat-list-loading 
{
    height: calc(100vh - 183px);
    margin-top: calc(183px - 100vh);
}

.sidebar-chat-list-item-selected 
{
    background-color: rgb(73, 73, 73);
}

.sidebar-chat-list-item-selected .sidebar-chat-list-item-button
{
    opacity: 1;
}

.sidebar-chat-list-item-selected .sidebar-chat-list-item-mask2
{
    opacity: 1;
    background: linear-gradient(90deg,#49494900 0%,#494949 50%,#494949 100%);
}

.sidebar-chat-list-item 
{
    height: 38px;
    color: rgb(228, 228, 231);
    background-color: #212327;
    cursor: pointer;
    border-radius: 12px;
    align-items: center;
    padding: 0 10px;
    font-size: 14px;
    display: flex;
    position: relative;
}

.sidebar-chat-list-item:hover
{
    background-color: #333333;
}

.sidebar-chat-list-item:hover .sidebar-chat-list-item-button
{
    opacity: 1;
}

.sidebar-chat-list-item:hover .sidebar-chat-list-item-mask2
{
    opacity: 1;
}

.sidebar-chat-list-item-content 
{
    white-space: nowrap;
    flex: 1;
    align-items: center;
    min-width: 0;
    line-height: 18px;
    display: flex;
    overflow: hidden;
}

.sidebar-chat-list-item-content 
{
    white-space: nowrap;
    flex: 1;
    align-items: center;
    min-width: 0;
    line-height: 18px;
    display: flex;
    overflow: hidden;
}

.sidebar-chat-list-item-button
{
    opacity: 0;
    z-index: 1;
    border-radius: 8px;
    outline: none;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    display: flex;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.sidebar-chat-list-item-button:hover
{
    background-color: #212327;
}

.sidebar-chat-list-item-img
{
    width: 16px; 
    height: 16px;
}

.sidebar-chat-list-item-mask1
{
    background: linear-gradient(90deg,#21232700 0%,#212327 50%,#212327 100%);
    width: 24px;
    pointer-events: none;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
}

.sidebar-chat-list-item-mask2
{    
    opacity: 0;
    background: linear-gradient(90deg,#33333300 0%,#333333 50%,#333333 100%);
    width: 84px;    
    pointer-events: none;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
}

#sidebar-tools 
{    
    box-sizing: border-box;
    flex-direction: column;
    flex-shrink: 0;
    align-items: center;
    padding: 10px 12px;
    line-height: 20px;
    display: flex;
}

#sidebar-tools-info
{
    cursor: pointer;
    box-sizing: border-box;
    border-radius: 12px;
    align-items: center;
    width: 100%;
    padding: 8px;
    display: flex;
}

#sidebar-tools-info:hover
{
    background-color: #333333;
}

#sidebar-tools-info-icon
{
    color: rgb(161, 161, 170);
    border-radius: 50%;
    font-size: 32px; 
    width: 32px; 
    height: 32px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: fit-content;
    display: flex;
    overflow: hidden;
}

#sidebar-tools-info-content
{
    color: rgb(161, 161, 170);
    user-select: none;
    margin-left: 8px;
    font-size: 14px;
}

#chat
{
    position: fixed;
    left: 200px;
    right: 0;
    top: 0; 
    bottom: 0;
}

#chat-wrapper
{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    transition: opacity .2s ease-in-out;
    opacity: 0;
}

#chat-loadding
{
    min-height: 100vh;
    margin-top: -100vh;
}

#chat-logo
{
    height: 80px;
    width: 100%;
    text-align: center; 
    font-size: 60px;
}

#chat-header
{
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 60px;
    text-align: center;
    
}

#chat-header-title
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);    
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    padding: 8px 12px;
    border-radius: 12px;
}

#chat-header-title:hover
{
    border: #F8FAFF;
}

#chat-container
{
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;;
    padding: 0 50px;
    overflow-y: auto;
}

#chat-container-messages
{
    width: 100%;
    height: 2000px;
    background-color: transparent;
    /* background-color: red; */
}

.chat-container-messages-user
{
    margin-bottom: 16px;
    padding-bottom: 32px;
    display: flex;
    justify-content: flex-end;
}

.chat-container-messages-user-bubble
{
    background-color: #414158;
    font-size: 16px;
    line-height: 28px;
    padding: 8px 20px;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-break: break-word;
    border-radius: 14px;
    max-width: calc(100% - 48px);
    position: relative;
}

.chat-container-messages-avatar
{
    font-size: 14px;
    margin-bottom: 12px;
    padding-left: 48px;
    position: relative;
}

.chat-container-messages-avatar-icon
{
    width: 40px;
    height: 40px;
    position: absolute;
    top: -2px;
    left: 0;
}

.chat-container-messages-avatar-think
{
    margin-bottom: 13px;
}

.chat-container-messages-avatar-think-header
{
    cursor: pointer;
    color: rgb(228, 228, 231);
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 18px;
    background-color: rgb(73, 73, 73);
    user-select: none;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    width: fit-content;
    padding: 7px 14px;
    display: flex;
}

.chat-container-messages-avatar-think-header:hover
{
    background-color: rgb(82 82, 82);
}

.chat-container-messages-avatar-think-header-arrow
{
    margin-left: 6px;
}

.chat-container-messages-avatar-think-body
{
    color: #a6a6a6;
    white-space: pre-wrap;
    margin: 0;
    padding: 0 0 0 13px;
    line-height: 26px;
    position: relative;
}

.chat-container-messages-avatar-think-body-line
{
    border-left: 2px solid #4e4e56;
    height: calc(100% - 10px);
    margin-top: 5px;
    position: absolute;
    top: 0;
    left: 0;
}

.chat-mask
{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 50px;
    background-color: #292a2d;
    padding: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.chat-input
{
    margin: 50px;
    border-radius: 24px;
    background-color: #404045;
    border: #5a5a69 1px solid;
    padding: 10px;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1;
}

.chat-input-bottom
{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin-bottom: 0;
}

#chat-input-text
{
    resize: none;
    color: rgb(245 245 245);
    background-color: transparent;
    border: none;
    outline: none;
    width:  calc(100% - 14px);
    max-height: 288px;
    margin: 0 4px;
    display: block;
    line-height: 1.5;
    font-size: 16px;
}

#chat-input-editor
{
    width: 100%;
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
    
}

.chat-input-editor-icon
{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    display: flex;
    margin-left: 10px;
    
}

.chat-input-editor-attachment
{
    cursor: pointer;
    color: #cdd4df;
    background-color: transparent;
    border-radius: 18px;
}

.chat-input-editor-attachment:hover
{
    background-color: #515159;
}

.chat-input-editor-send
{
    color: #4b4b5b;
    background-color: rgb(113, 113, 122);
    cursor: not-allowed;
}

.chat-input-editor-send-active
{    
    cursor: pointer;
    color: rgb(248 250 252);
    background-color: #4d6bfe;
}

.chat-input-editor-send-active:hover
{
    background-color: #4f6eca;
}
